// 主体色
@xtxColor: #27BA9B;
// 辅助色
@fuzuColor: #E26237;
// 成功色
@sucColor: #1DC779;
// 警告色
@warnColor: #FFB302;
// 价格色
@priceColor: #CF4444;

.loading(@name:v,@top:0,@delay:.5s){
  .@{name}{
    &-enter-to,&-leave {
      opacity: 1;
    }
    &-enter-active{
      transition: opacity .5s @delay;
    }
    &-leave-active{
      transition: opacity .5s @delay;
      position: absolute;
      top: @top;
      width: 100%;
    }
    &-enter,&-leave-to{
      opacity: 0;
    }
  }
}